Add a FLAT style class
authorMatthias Clasen <mclasen@redhat.com>
Fri, 27 Jun 2014 02:00:29 +0000 (22:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 27 Jun 2014 02:02:08 +0000 (22:02 -0400)
This will be used for frame-less buttons and frames in the future.

docs/reference/gtk/gtk3-sections.txt
gtk/gtkstylecontext.h

index 5896a799cdfe3bbb2ce8c55204bea338f3311782..f32a782c06bd94c6d47f3bbc0d183864aa598ee5 100644 (file)
@@ -5977,6 +5977,7 @@ GTK_STYLE_CLASS_ENTRY
 GTK_STYLE_CLASS_ERROR
 GTK_STYLE_CLASS_EXPANDER
 GTK_STYLE_CLASS_FRAME
+GTK_STYLE_CLASS_FLAT
 GTK_STYLE_CLASS_GRIP
 GTK_STYLE_CLASS_HEADER
 GTK_STYLE_CLASS_HIGHLIGHT
index 22182b36d7a84a1958da67d53ec7a0406d61c1c0..d141476e4496e6ad79524110410d415b2a8cd60a 100644 (file)
@@ -825,6 +825,17 @@ struct _GtkStyleContextClass
  */
 #define GTK_STYLE_CLASS_MESSAGE_DIALOG "message-dialog"
 
+/**
+ * GTK_STYLE_CLASS_FLAT:
+ *
+ * A CSS class that is added when widgets that usually have
+ * a frame or border (like buttons or entries) should appear
+ * without it.
+ *
+ * Since: 3.14
+ */
+#define GTK_STYLE_CLASS_FLAT "flat"
+
 /**
  * GTK_STYLE_REGION_ROW:
  *